import request from '@/utils/request/index.js'
export default {


	//发送消息
	sendMsg(data){
		return request.request({
			url:"/h5/nocmsgcontent/sendMsg",
			method:'post',
			data:data,
		})
	},

	//获取聊天内容
	getChatDetail(data){
		return request.request({
			url:"/h5/nocmsgcontent/detailList",
			method:'post',
			data:data,
		})
	},

	//获取根据id获取产品
	getProductById(productId){
		return request.request({
			url:"h5/nocproduct/detail/"+productId,
			method:'get',
			data:{},
		})
	},

	//查询需求详情
	getDemandDetail(demandId){
		return request.request({
			url:"/h5/nocdemand/info/" + demandId,
			method:'post',
			data:{},
		})
	},

	//发送模板消息
	sendTemplateMsg(msgId) {
		return request.request({
			url: "/h5/nocmsgcontent/sendTmplateMsg",
			method: 'post',
			data: {msgId: msgId}
		})
	},



}
